local hx__sima = fk.CreateSkill {
  name = "hx__sima",
  tags = { Skill.Compulsory },
}

hx__sima:addEffect(fk.EventPhaseStart, {
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(hx__sima.name) and player.phase == Player.Start
  end,
  on_use = function(self, event, target, player, data)
    player:drawCards(1, hx__sima.name)
  end,
})

hx__sima:addEffect("distance", {
  correct_func = function(self, from, to)
    if from:hasSkill(hx__sima.name) then
      return -1
    end
    if to:hasSkill(hx__sima.name) then
      return 1
    end
    return 0
  end,
})

return hx__sima 